<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <input type="text"/>
    <a href="javascript:;">send</a>
    <script src="jquery.min.js"></script>
    <script src="pushserver-cli-test.js"></script>
    <script>
    (function() {

    'use strict';

    $('a').click(function() {

        $.ajax({
            url      : 'http://localhost:12345/redis',
            type     : 'GET',
            dataType : 'jsonp',
            data     : {
                channel : 'msgchannel',
                data    : $('input').val()
            }
        });

        return false;
    });

    }());
    </script>
</body>
</html>
